package com.project.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wt.WorkLoadService;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin(value = { "*" },allowCredentials = "true")
public class WorkLoadController {
    @Reference
    WorkLoadService service;

    /**
     * 门诊费用统计
     */
    @RequestMapping("FindMZFY")
    public Object FindMZFY(String rqone,String rqtwo,String name){
        List<Map<String,Object>> mzfy = service.FindMZFY(rqone,rqtwo,name);
        return mzfy;
    }

    /**
     * 门诊处方统计
     * @param rqone
     * @param rqtwo
     * @param name
     * @return
     */
    @RequestMapping("FindCFTJ")
    public Object FindCFTJ(String rqone,String rqtwo,String name){
        List<Map<String,Object>> cftj = service.FindCFTJ(rqone,rqtwo,name);
        return cftj;
    }

    /**
     * 挂号费统计
     * @param rqone
     * @param rqtwo
     * @param name
     * @return
     */
    @RequestMapping("FindGHF")
    public Object FindGHF(String rqone,String rqtwo,String name){
        List<Map<String,Object>> ghf = service.FindGHF(rqone,rqtwo,name);
        return ghf;
    }

    /**
     * 收费员统计
     * @param rqone
     * @param rqtwo
     * @param name
     * @return
     */
    @RequestMapping("FindSFY")
    public Object FindSFY(String rqone,String rqtwo,String name) {
        List<Map<String, Object>> sfy = service.FindSFY(rqone, rqtwo, name);
        return sfy;
    }
}
